package com.tydic.system.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tydic.common.core.enums.MessageCategoryEnum;
import com.tydic.system.domain.SysMessage;
import com.tydic.system.domain.bo.QuerySysMessageBo;

public interface ISysMessageService {
    Page<SysMessage> selectPage(QuerySysMessageBo bo);


    void insertNeedHandler(MessageCategoryEnum category, String categoryId, String title, String msg);


    void insertMessageHandler(MessageCategoryEnum category, String categoryId, String title, String msg, String receiver);


    void insertMessage(MessageCategoryEnum category, String categoryId, String title, String msg, String receiver);


    void handleMessage(MessageCategoryEnum category, String categoryId);


    void completeMessage(MessageCategoryEnum category, String categoryId, String receiver);


    void completeMessage(MessageCategoryEnum category, String categoryId);

    SysMessage getMessage(MessageCategoryEnum category, String categoryId, String receiver);
}
